<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: ajinlong
  Date: 2021/6/24
  Time: 17:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>注册</title>
</head>
<body>

<form:form modelAttribute="registerUser">

    <table>
        <tr>
            <td>用户名</td>
            <td><form:input path="userId"/></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><form:password path="password"/></td>
        </tr>
        <tr>
            <td>性别</td>
            <td><form:radiobutton path="sex" value="M"/>男
                <form:radiobutton path="sex" value="F"/>女
                <form:radiobutton path="sex" value="N"/>保密
            </td>
        </tr>
        <tr>
            <td>所在地</td>
            <td><form:select path="province" items="${provinceList}"/></td>
        </tr>
        <tr>
            <td>运动特长</td>
            <td><form:checkboxes path="sportInterests" items="${sportInterestList}"/></td>
        </tr>
        <tr>
            <td>同意以下协议</td>
            <td><form:checkbox path="agree"/></td>
        </tr>
        <tr>
            <td><input type="submit" value="提交"></td>
        </tr>
    </table>
    <p>${errorMsg}</p>

</form:form>

</body>
</html>
